import { CardEditableParamsDefault, CardDataEditableParamsCommonDefault } from "@/views/card/js/data/cardDatas/card-datas-default.js";
import TooltipsData from "@/views/card/js/data/tooltipsData/tooltips-data.js";
const CARD_56 =  {
  title: {
    ...CardEditableParamsDefault.InputNormal,
    label: '标题',
    placeholder: '请填入标题',
  },
  positive_side: {
    ...CardEditableParamsDefault.Obj,
    label: '红方',
    param_params: {
      desc: {
        ...CardEditableParamsDefault.InputNormal,
        label: '描述',
        placeholder: '请填入描述',
      },
      count: {
        ...CardEditableParamsDefault.InputNormal,
        label: 'count',
        placeholder: '请填入count',
        disabled: true,
      },
      base: {
        ...CardEditableParamsDefault.InputNormal,
        label: '投票基数',
        placeholder: '请填入投票基数',
      },
      pic: {
        ...CardEditableParamsDefault.ImageNormal,
        label: '左图',
        res_type: 'String',  // Array : fileList, String : value
        placeholder: '请选择左图，jpg/jpeg/png格式',
        limit: 1,
        size: 500,
        accept: '.jpg, .jpeg, .png',
      },
      support_params: {
        ...CardEditableParamsDefault.Obj,
        label: '红方其他参数',
        param_params: {
          id: {
            ...CardEditableParamsDefault.InputNormal,
            label: '红方支持ID',
            placeholder: '请填入红方支持ID',
            disabled: true,
          },
          com_id: {
            ...CardEditableParamsDefault.InputNormal,
            label: '数据查询ID',
            disabled: true,
          },
          vote_id: {
            ...CardEditableParamsDefault.InputNormal,
            label: '投票项查询ID',
            disabled: true,

            param_effect_parent: {
              effect_parent_keys: ['positive_side', 'button', 'params', 'action'],
              effect_type: ['SYNC_DATA_FROM_ACTION'],
              effect_sync_data_key: "vote_id"
            },
          },
        },
      },
      button: {
        ...CardEditableParamsDefault.Obj,
        label: '按钮配置',
        param_params: {
          name: {
            ...CardEditableParamsDefault.InputNormal,
            label: '按钮名称',
            placeholder: '插入  {#num}  替换数字',
            tooltips: TooltipsData.others[2],
          },
          // scheme: {
          //   ...CardEditableParamsDefault.InputNormal,
          //   label: '跳转链接',
          //   placeholder: '请选择跳转链接',
          // },
          params: {
            ...CardEditableParamsDefault.Obj,
            label: '按钮事件配置',
            param_params: {
              action: {
                ...CardEditableParamsDefault.Action,
                label: '按钮事件',
                placeholder: '请选择按钮事件',
                tooltips: TooltipsData.others[1],
              },
            },
          },
        },
      },
    }
  },
  negative_side: {
    ...CardEditableParamsDefault.Obj,
    label: '蓝方',
    param_params: {
      desc: {
        ...CardEditableParamsDefault.InputNormal,
        label: '描述',
        placeholder: '请填入描述',
      },
      count: {
        ...CardEditableParamsDefault.InputNormal,
        label: 'count',
        placeholder: '请填入count',
        disabled: true,
      },
      base: {
        ...CardEditableParamsDefault.InputNormal,
        label: '投票基数',
        placeholder: '请填入投票基数',
      },
      pic: {
        ...CardEditableParamsDefault.ImageNormal,
        label: '右图',
        res_type: 'String',  // Array : fileList, String : value
        placeholder: '请选择右图，jpg/jpeg/png格式',
        limit: 1,
        size: 500,
        accept: '.jpg, .jpeg, .png',
      },
      support_params: {
        ...CardEditableParamsDefault.Obj,
        label: '蓝方其他参数',
        param_params: {
          id: {
            ...CardEditableParamsDefault.InputNormal,
            label: '蓝方支持ID',
            placeholder: '请填入蓝方支持ID',
            disabled: true,
          },
          com_id: {
            ...CardEditableParamsDefault.InputNormal,
            label: '数据查询ID',
            disabled: true,
          },
          vote_id: {
            ...CardEditableParamsDefault.InputNormal,
            label: '投票项查询ID',
            disabled: true,

            param_effect_parent: {
              effect_parent_keys: ['negative_side', 'button', 'params', 'action'],
              effect_type: ['SYNC_DATA_FROM_ACTION'],
              effect_sync_data_key: "vote_id"
            },
          },
        },
      },
      button: {
        ...CardEditableParamsDefault.Obj,
        label: '按钮配置',
        param_params: {
          name: {
            ...CardEditableParamsDefault.InputNormal,
            label: '按钮名称',
            placeholder: '插入  {#num}  替换数字',
            tooltips: TooltipsData.others[2],
          },
          // scheme: {
          //   ...CardEditableParamsDefault.InputNormal,
          //   label: '跳转链接',
          //   placeholder: '请选择跳转链接',
          // },
          params: {
            ...CardEditableParamsDefault.Obj,
            label: '按钮事件配置',
            param_params: {
              action: {
                ...CardEditableParamsDefault.Action,
                label: '按钮事件',
                placeholder: '请选择按钮事件',
                tooltips: TooltipsData.others[1],
              },
            },
          },
        },
      },
    }
  },
  ...CardDataEditableParamsCommonDefault,
};
export default CARD_56;
